package com.alone.embedded.lucene.transaction;

import java.util.Collection;

/**
 * @author Alone
 * @date 2022/9/2 1:14 下午
 */
public interface XaSourcePool {

    /**
     * 获取XaSource
     *
     * @param docClass docClass
     * @param <T>      T
     * @return XaSource
     */
    <T> XaSource<T> getXaSource(Class<T> docClass);

    /**
     * 获取XaSources
     * @return Collection
     */
    Collection<XaSource<?>> getXaSources();
}
